package gui;

import javax.swing.JCheckBox;

/**
 * Klasse macht JComboBoxen
 * 
 * @author Michi
 * 
 */
public class JCheckBoxWithObject extends JCheckBox {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2087053250850209564L;
	private Object object;

	/**
	 * Konstruktor
	 * 
	 * @param object
	 *            Objekt welches alles sein kann
	 */
	public JCheckBoxWithObject(Object object) {
		this.object = object;
		this.setText(object.toString());
	}

	public Object getObject() {
		return object;
	}

	public void setObject(Object object) {
		this.object = object;
		this.setText(object.toString());
	}

}
